Skip to content

Warning in the console if same name pan elements are available on the page. #13

Merged
MrPunyapal merged 2 commits intopanphp:mainfrom
msamgan:warn-same-name
Apr 6, 2026
Merged

Warning in the console if same name pan elements are available on the page. #13
MrPunyapal merged 2 commits intopanphp:mainfrom
msamgan:warn-same-name

Conversation

@msamgan
Copy link
Copy Markdown
Contributor

@msamgan msamgan commented Oct 16, 2024

The current behavior of the package takes the last element on the page into consideration, ignoring all others. But the user doesn't know if by mistake that happened.

This PR will give the user a warning in the console if any pan element has the same name. It's a warning because the package must have broken it would have been an error.

On-Page
image

In Console.
image

@msamgan msamgan changed the title Warn same name Warning in the console if same name pan elements are available on the page. Oct 16, 2024
@MrPunyapal MrPunyapal merged commit 53dc8ce into panphp:main Apr 6, 2026
@MrPunyapal
Copy link
Copy Markdown
Collaborator

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants